/**
 * Copyright (c) 2012 Axa Holding Belgium, SA. All rights reserved.
 * This software is the confidential and proprietary information of the AXA Group.
 */
package chabernac.android.wordbattle.paint;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class ClearAllDrawable extends iDrawable {
  private final Paint myPaint = new Paint();
  private final int myClearColor;
  
  public ClearAllDrawable( int aClearColor ) {
    super();
    myClearColor = aClearColor;
    init();
  }
  
  private void init(){
    myPaint.setColor(myClearColor);
  }

  @Override
  public void paint( Canvas aCanvas, View aView ) {
    aCanvas.drawRect(0,0,aView.getWidth(),aView.getHeight(), myPaint);
  }
}
